<?php require './view/public/header.php'; ?>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="result-wrap">
            <div class="result-content">
                <form action="./index.php?c=type&a=doadd" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%"><tbody><tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                                <select id="pid" class="required" disabled>
									<option><?php if(isset($_GET['tname']))echo $_GET['tname']; else echo '根分类';?></option>
                                </select>
                            </td>
                        </tr>
						<input type='hidden' name='pid' value='<?php if(isset($_GET['id'])) echo $_GET['id']; ?>' >
						<input type='hidden' name='path' value='<?php if(isset($_GET['id'])) echo $_GET['path'].$_GET['id'].'-'; ?>' >
                            <tr>
                                <th><i class="require-red">*</i>类名：</th>
                                <td>
                                    <input class="common-text required" id="title" name="tname" size="50" required value="<?php if(isset($ret['uname'])) echo $ret['uname']; ?>" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>
    </div>
    <!--/main-->
<?php require './view/public/footer.php'; ?>